const mongoose=require("mongoose")
mongoose.connect("mongodb://project:37FENX6MJ5tYzmkj@39.106.75.8:27017/project?authSource=project")

const conn = mongoose.connection

conn.on("open",()=>{
    console.log("数据库连接成功");
})
conn.on("error",(err)=>{
    console.log("数据库连接失败",err);
})

module.exports=mongoose

